home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / bluez / serial-api.txt < prev    next >
Encoding:
Text File  |  2008-09-06  |  1.0 KB  |  38 lines

  1. BlueZ D-Bus Serial API description
  2. **********************************
  3.  
  4. Copyright (C) 2004-2008  Marcel Holtmann <marcel@holtmann.org>
  5.  
  6.  
  7. Serial hierarchy
  8. ================
  9.  
  10. Service        org.bluez
  11. Interface    org.bluez.Serial
  12. Object path    [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
  13.  
  14. Methods        string Connect(string uuid)
  15.  
  16.             Connects to a specific RFCOMM based service on a
  17.             remote device and then creates a RFCOMM TTY
  18.             device for it. The RFCOMM TTY device is returned.
  19.  
  20.             Possible errors: org.bluez.Error.InvalidArguments
  21.                      org.bluez.Error.InProgress
  22.                      org.bluez.Error.ConnectionAttemptFailed
  23.                      org.bluez.Error.NotSupported
  24.  
  25.         void Disconnect(string device)
  26.  
  27.             Disconnect a RFCOMM TTY device that has been
  28.             created by Connect method.
  29.  
  30.             To abort a connection attempt in case of errors or
  31.             timeouts in the client it is fine to call this method.
  32.  
  33.             In that case the UUID of the Connect method should
  34.             be suplied instead of the TTY device.
  35.  
  36.             Possible errors: org.bluez.Error.InvalidArguments
  37.                      org.bluez.Error.DoesNotExist
  38.